<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>首页</title>
		<link href="<?=base_url("templates/default")?>/bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<script src="<?=base_url("templates/default")?>/js/jquery.min.js"></script>
		<script src="<?=base_url("templates/default")?>/bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="<?=base_url("templates/default")?>/css/style.css" />
	</head>
	<body>
		<div class="cong-head">
			<nav class="navbar navbar-default nav_top">
				<h4 class="navbar-text">宠物圈</h4>
			</nav>
			<div class="a_list">
				<ul class="list-group clearfix cong-ul-01">
					<li class="list-group-item col-xs-3 active1"><a href="<?php echo base_url("").'home/index/';?>"><span>首页</span></a></li>
					<li class="list-group-item col-xs-3"><a href="<?php echo base_url().'forum/index/';?>"><span>版块</span></a></li>
					<li class="list-group-item col-xs-3"><a href="<?php echo base_url().'shop/index/';?>"><span>商城</span></a></li>
					<li class="list-group-item col-xs-3"><a href="<?php echo base_url().'activity/index/';?>"><span>活动</span></a></li>
				</ul>
			</div> 
		
			<div id="myCarousel" class="carousel slide">
				<!-- 轮播（Carousel）指标 -->
				<ol class="carousel-indicators">
					<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
					<li data-target="#myCarousel" data-slide-to="1"></li>
					<li data-target="#myCarousel" data-slide-to="2"></li>
				</ol>
				<!-- 轮播（Carousel）项目 -->
				<div class="carousel-inner">
					<div class="item active">
						<img src="<?=base_url("templates/default")?>/img/1.jpg" alt="First slide">
					</div>
					<div class="item">
						<img src="<?=base_url("templates/default")?>/img/gou2.jpg" alt="Second slide">
					</div>
					<div class="item">
						<img src="<?=base_url("templates/default")?>/img/gou3.jpg" alt="Third slide">
					</div>
				</div>
				<!-- 轮播（Carousel）导航 -->
				<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
					<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
					<span class="sr-only">Previous</span>
				</a>
				<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
					<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
					<span class="sr-only">Next</span>
				</a>
			</div> 
		</div>

		<div class="container cong_content">
			<?php foreach ($info1 as $eachInfo){ ?>
				<div class="media cong_media">
					<a class="media-left" href="<?php echo base_url().'news/info/'.$eachInfo['id'];?>">
						<img class="media-object" src="<?php echo base_url('attachments'.$eachInfo['focus']);?>" alt="狗粮">
					</a>
					<div class="media-body">
						<h4 class="media-heading"><?php echo $eachInfo['title'];?></h4>
						<p>
						<?php echo $eachInfo['contents'];?>
						</p>
					</div>
				</div>
			<?php }?>
			<!--
				<div class="media cong_media">
					<a class="media-left" href="#">
						<img class="media-object" src="img/gou5.jpg" alt="泰迪">
					</a>
					<div class="media-body">
						<h4 class="media-heading">泰迪狗生活习惯</h4>
							泰迪狗平常喜欢闹腾.
					</div>
				</div>
				<div class="media cong_media">
					<a class="media-left" href="#">
						<img class="media-object" src="img/mao1.jpg" alt="猫">
					</a>
					<div class="media-body">
						<h4 class="media-heading">猫平时很安静</h4>
									猫平时很安静，很卫生。
					</div>
				</div>	
			-->
		</div>
	</body>
</html>
